package cn.edu.bit.lixin.blog.biz;

import cn.edu.bit.lixin.blog.dao.CateDAO;
import cn.edu.bit.lixin.blog.entity.Category;

public class CateManager {
	private CateDAO dao;
	
	public CateDAO getDao() {
		return dao;
	}

	public void setDao(CateDAO dao) {
		this.dao = dao;
	}

	public Category getSpecificCate(int cateId){
		Category cate = (Category)dao.findById(Category.class, cateId);
		return cate;
	}
}
